<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="data of list" :key="data.id">
        <div class="item-img-wrapper">
          <img class="item-img" :src="data.imgUrl"/>
        </div>
        <div class="item-info">
          <p class="item-title">{{data.title}}</p>
          <p class="item-desc">{{data.desc}}</p>
        </div>
      </li>
    </ul>
  </div>

</template>
<script>
export default {
  name: 'HomeWeeked',
  props: {
    list: Array
  }
}
</script>
<style scoped lang="stylus">
  @import '~styles/mixins.styl'
  .title
    line-height: .8rem
    background: #eee
    text-indent: .2rem
  .item
    padding-bottom: .2rem
    .title
      line-height: .8rem
      background: #eee
      margin-top: .2rem
      text-indent: .2rem
    .item-img-wrapper
      overflow: hidden
      height: 0
      padding-bottom: 38.09%
      .item-img
        width:100%
    .item-info
      padding: .1rem
      .item-title
        ellipsis()
        line-height: .54rem
        font-size: .32rem
      .item-desc
        ellipsis()
        line-height: .4rem
        font-size: .28rem
        color: #616161
</style>
